<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<% include  ./template/commonCss.ejs %>
	<link href="<%=resUrl%>/css/special_product.css" rel="stylesheet" type="text/css" />
	<% include ./template/commonJs.ejs %>
	<% include ./template/chatLister.ejs %>
</head>
<script>
	var auctionId = '<%-auctionId%>';
</script>

<body ontouchstart> 
		<% var topTitle = '专场藏品';var topReturnType = '' %> 
		<% include ./template/topReturn.ejs %>

	<div class="weui-tab">
		<div class="weui-tab__bd" >
			<%
			var auctionDetails = auctionDetail;
			var auctionDetail={};
			if(auctionDetails && auctionDetails.length>0){
				auctionDetail = JSON.parse(auctionDetails) ;
			}
			%>
			<div class="zc" <%if(locals.token && token != ''){%>style="top:0;"<%}%>>
				<div class="shop">
					<!-- <div class="img">
						<img src="<%-auctionDetail?auctionDetail.image:'' %>" width="100%"/>
					</div> -->
					<div class="info">
						<div class="name">
							<i class="iconfont icon-jishi"></i>&nbsp;<%-auctionDetail?auctionDetail.name:'' %>
						</div>
						<div class="row">
							<div class="down-count">
								结束时间:<%-auctionDetail?auctionDetail.endDate:'' %>
							</div>
							<!-- <div class="antique-count">
								<img src="img/gudianhuaping.png"/><%-auctionDetail && auctionDetail.productHoldCount?auctionDetail.productHoldCount:'0' %>
							</div> -->
						</div>
					</div>
				</div>
			</div>
			<div id="aroundBox" <%if(locals.token && token != ''){%>style="top:1.7rem;"<%}%>>
					<div class="weui-pull-to-refresh__layer" style="padding: 5px;">
						<div class="weui-pull-to-refresh__arrow"></div>
						<div class="weui-pull-to-refresh__preloader"></div>
						<div class="down">下拉刷新</div>
						<div class="up">释放刷新</div>
						<div class="refresh">正在刷新</div>
					</div>
					<div class="weipai-list" id="contentTo">
						<div class="left-list" id="left-list-content"></div>
						<div class="right-list" id="right-list-content"></div>
						<div class="auto-height"></div>
					</div>
					<div class="weui-loadmore" id="loadmore">
						<i class="weui-loading"></i>
						<span class="weui-loadmore__tips">正在加载</span>
					</div>
					<div class="weui-loadmore weui-loadmore_line" style="display:none;" id="nomore">
						<span class="weui-loadmore__tips">到底了</span>
					</div>
			</div>
		</div>
	</div>
	<%if(auctionDetail && auctionDetail.state==0){ %>
	<a href="javascript:visitUrl('/collect/addAuction?auctionId=<%-auctionId%>')" >
		<div class="add-bottom">添加藏品</div>	
	</a>
	<%}%>
	<script id="left-list" type="text/html">
		{{each list}}
			<div class="lot">
				<div class="info" >
					<a href="javascript:visitUrl('/auctionCollectDetail?id={{$value.id}}')">
					<div class="pic"><img src="{{$value.coverImage}}?x-oss-process=image/resize,w_500"></div>
					<div class="title">{{$value.name}}</div>
					<div class="price">¥{{$value.nowPrice}}</div>
					</a>
					{{if $value.state == 0}}
					<div class="bottom" >
						<a href="javascript:visitUrl('/collect/update?id={{$value.id}}')"><div class="bots" >编辑</div></a>
						<div class="bots" onclick="delPro('{{$value.id}}');">删除</div>
					</div>
					{{/if}}
				</div>
			</div>
		{{/each}}
	</script>	
	<script id="right-list" type="text/html">
		{{each list}}
			<div class="lot">
				<div class="info" >
					<a href="javascript:visitUrl('/auctionCollectDetail?id={{$value.id}}')">
					<div class="pic"><img src="{{$value.coverImage}}?x-oss-process=image/resize,w_500"></div>
					<div class="title">{{$value.name}}</div>
					<div class="price">¥{{$value.nowPrice}}</div>
					</a>
					{{if $value.state == 0}}
					<div class="bottom" >
						<a href="javascript:visitUrl('/collect/update?id={{$value.id}}')"><div class="bots" >编辑</div></a>
						<div class="bots" onclick="delPro('{{$value.id}}');">删除</div>
					</div>
					{{/if}}
				</div>
			</div>
		{{/each}}
	</script>
	<script type="text/javascript" src="<%=resUrl%>/js/special_product.js"></script>
</body>

</html>